package com.yunwaikeji.gy_tool_library.utils.request;

import com.google.gson.Gson;

import okhttp3.MediaType;
import okhttp3.RequestBody;

public class GYRequestUtils {
    private static final Gson gson = new Gson();

    public static RequestBody toRequestBody(Object object) {
        return RequestBody.create(gson.toJson(object), MediaType.parse("application/json"));
    }

    public static GYMultipartBodyBuilder newMultipartBodyBuilder() {
        return new GYMultipartBodyBuilder();
    }
}
